#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    :   10.py
@Time    :   2020/03/15 23:40:30
@Author  :   Malygos_l 
@Version :   1.0
@Contact :   751756061@qq.com
@WebSite :   www.gitee.com/malygos_l
'''
# Start typing your code from here
# 编写一个函数cacluate, 可以实现2个数的运算(加,减 乘,除)

def calculate(num1,num2,oprater):
    if oprater=="+":
        return num1+num2
    elif oprater=="-":
        return num1-num2
    elif oprater=="*":
        return num1*num2
    elif oprater=="/":
        if num2!=0:
            return num1/num2
        else:print("Error!")
    else: print("无法识别!")

numb1 = input("请输入数字1：")
numb1 = int(numb1)
numb2 = input("请输入数字2：")
numb2 = int(numb2)
op = input("请输入运算符：")
print(calculate(numb1,numb2,op))